<?php
// Исключаем прямой доступ
defined('_JEXEC') or die;

// Инициализируем переменные
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$this->language = $doc->language;
$this->direction = $doc->direction;
?>
<!doctype html>
<html>
<head lang="en">
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Template</title>

	<!-- Styles -->
	<link href="<?php echo $this->baseurl.'/templates/white_rabbit/css/bootstrap.css'; ?>" rel="stylesheet" media="screen">
	<link href="<?php echo $this->baseurl.'/templates/white_rabbit/css/bootstrap-responsive.css'; ?>" rel="stylesheet">
	<link href="<?php echo $this->baseurl.'/templates/white_rabbit/css/style.css'; ?>" rel="stylesheet" media="screen">

	<!-- Scripts -->
	<script src="http://code.jquery.com/jquery-latest.js"></script>
	<script src="<?php echo $this->baseurl.'/templates/white_rabbit/js/bootstrap.min.js'; ?>"></script>

</head>

<body>

<header class="row">
	<div class="span12">
		<div class="navbar">
			<div class="navbar-inner">
				<a class="brand" id="logo" href="<?php echo $this->baseurl; ?>">Anodos</a>
				<jdoc:include type="modules" name="nav" style="none" />
				<jdoc:include type="modules" name="search" style="none" />
				<jdoc:include type="modules" name="login" style="none" />
				

		</div>
	</div>
</header>

<?php if ($this->countModules('breadcrumbs')): ?>
<div class="row">
	<div class="span12">
		<jdoc:include type="modules" name="breadcrumbs" style="none" />
	</div>
</div>
<?php endif; ?>

<div class="row">

	<?php if ($this->countModules('left')): ?>
	<aside class="span3">
		<jdoc:include type="modules" name="left" style="none" />
	</aside>
	<?php endif; ?>


	<article class="<?php if (($this->countModules('left')) xor ($this->countModules('right'))) { echo 'span9'; } if (($this->countModules('left')) and ($this->countModules('right'))) { echo 'span6'; } if (!($this->countModules('left')) and !($this->countModules('right'))) { echo 'span12'; }?>">
		<jdoc:include type="message" />
		<jdoc:include type="component" />
		<jdoc:include type="modules" name="under-article" />
	</article>

	<?php if ($this->countModules('right')): ?>
	<aside class="span3">
		<jdoc:include type="modules" name="right" style="none" />
	</aside>
	<?php endif; ?>

</div>

<footer class="row">
	<div class="span3">
		Footer left
	</div>
	<div class="span6">
		Footer center
	</div>
	<div class="span3">
		Footer right
	</div>
</footer>


<!-- Yandex.Metrika counter --><div style="display:none;"><script type="text/javascript">(function(w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter13190530 = new Ya.Metrika({id:13190530, enableAll: true, webvisor:true}); } catch(e) { } }); })(window, "yandex_metrika_callbacks");</script></div><script src="//mc.yandex.ru/metrika/watch.js" type="text/javascript" defer="defer"></script><noscript><div><img src="//mc.yandex.ru/watch/13190530" style="position:absolute; left:-9999px;" alt="" /></div></noscript><!-- /Yandex.Metrika counter -->

</body>
</html>
